Move out serene-repl and serenec outside of src
This commit is contained in:
parent
58274835b1
commit
b109c3a975
|
@ -223,8 +223,8 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||||
add_subdirectory(serene-tblgen)
|
add_subdirectory(serene-tblgen)
|
||||||
|
|
||||||
# The compiled library code is here
|
# The compiled library code is here
|
||||||
add_subdirectory(src)
|
add_subdirectory(serenec)
|
||||||
|
add_subdirectory(serene-repl)
|
||||||
# The compiled library code is here
|
# The compiled library code is here
|
||||||
add_subdirectory(libserene)
|
add_subdirectory(libserene)
|
||||||
|
|
||||||
|
|
|
@ -46,3 +46,8 @@ target_include_directories(serene-repl PRIVATE ${PROJECT_BINARY_DIR})
|
||||||
target_include_directories(serene-repl PRIVATE ${INCLUDE_DIR})
|
target_include_directories(serene-repl PRIVATE ${INCLUDE_DIR})
|
||||||
|
|
||||||
install(TARGETS serene-repl DESTINATION bin)
|
install(TARGETS serene-repl DESTINATION bin)
|
||||||
|
|
||||||
|
if(SERENE_BUILD_TESTING)
|
||||||
|
message("Build the test binary")
|
||||||
|
add_subdirectory(tests)
|
||||||
|
endif()
|
|
@ -128,6 +128,7 @@
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#else
|
#else
|
||||||
|
@ -148,6 +149,8 @@
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
#pragma warning(disable : 4996)
|
#pragma warning(disable : 4996)
|
||||||
#endif
|
#endif
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
@ -157,7 +160,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace linenoise {
|
namespace linenoise {
|
Loading…
Reference in New Issue