diff --git a/CMakeLists.txt b/CMakeLists.txt index ee9a096..336d829 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,18 +165,7 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/TessesCrossLangConfig.cmake" DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/TessesCrossLang) endif() if(CROSSLANG_ENABLE_BINARIES) -if(CROSSLANG_ENABLE_SHARED) -add_executable(crossc src/crosslangcompiler.cpp) -add_executable(crossvm src/crosslangvm.cpp) -add_executable(crossint src/crosslanginterperter.cpp) -add_executable(crossdump src/crosslangdump.cpp) -add_executable(crosslang src/crosslang.cpp) -target_link_libraries(crossc PUBLIC crosslang_shared) -target_link_libraries(crossvm PUBLIC crosslang_shared) -target_link_libraries(crossint PUBLIC crosslang_shared) -target_link_libraries(crossdump PUBLIC crosslang_shared) -target_link_libraries(crosslang PUBLIC crosslang_shared) -elseif(CROSSLANG_ENABLE_STATIC) +if(CROSSLANG_ENABLE_STATIC) add_executable(crossc src/crosslangcompiler.cpp) add_executable(crossvm src/crosslangvm.cpp)