Fix TestInstall/CMakeLists.txt
MODIFY
tests/TestInstall/CMakeLists.txt
tests/TestInstall/CMakeLists.txt
project(HELLOSUREWORLD)
-set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 14)
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.13)
# Python
-find_package(PythonLibs 3.3 REQUIRED)
-INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
-message(STATUS "PYTHON_LIBRARIES = ${PYTHON_LIBRARIES}")
-message(STATUS "PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}")
-message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}")
+find_package(Python3 3.3 REQUIRED COMPONENTS Interpreter Development)
+include_directories(${Python3_INCLUDE_DIRS})
+message(STATUS "Python3_LIBRARIES = ${Python3_LIBRARIES}")
+message(STATUS "Python3_EXECUTABLE = ${Python3_EXECUTABLE}")
+message(STATUS "Python3_INCLUDE_DIRS = ${Python3_INCLUDE_DIRS}")
+message(STATUS "Python3_RUNTIME_LIBRARY_DIRS = ${Python3_RUNTIME_LIBRARY_DIRS}")
# Directories
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/)
@@ -43,23 +44,22 @@ include_directories(${INCLUDE_DIR})
include_directories("${INSTALL_DIR}/include/uhdm/")
include_directories("${INSTALL_DIR}/include/uhdm/include/")
-set (LIB_DIR "${INSTALL_DIR}/lib/surelog/")
+set (LIB_DIR "${INSTALL_DIR}/lib/")
if(NOT NO_TCMALLOC)
set (TCMALLOC_LIBRARY tcmalloc)
endif(NOT NO_TCMALLOC)
set (INSTALL_LIBRARIES_FOR_SURELOG
- -L${LIB_DIR} surelog
+ -L${LIB_DIR}surelog/ surelog
antlr4-runtime
flatbuffers
uhdm
- -L${LIB_DIR}/../uhdm
+ -L${LIB_DIR}uhdm/
capnp kj
- ${PYTHON_LIBRARIES} dl util m rt pthread ${TCMALLOC_LIBRARY}
+ ${Python3_LIBRARIES} dl util m rt pthread ${TCMALLOC_LIBRARY}
)
add_executable(test_hellosureworld ${PROJECT_SOURCE_DIR}/../../src/hellosureworld.cpp)
-target_link_libraries(
- test_hellosureworld ${INSTALL_LIBRARIES_FOR_SURELOG}
-)
+target_link_libraries(test_hellosureworld ${INSTALL_LIBRARIES_FOR_SURELOG})
+target_link_libraries(test_hellosureworld stdc++fs)

Fix TestInstall/CMakeLists.txt