Finally change cmake file to be like TessesFramework
This commit is contained in:
parent
49be0f8528
commit
82bf80ba06
|
@ -165,18 +165,7 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/TessesCrossLangConfig.cmake"
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/TessesCrossLang)
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/TessesCrossLang)
|
||||||
endif()
|
endif()
|
||||||
if(CROSSLANG_ENABLE_BINARIES)
|
if(CROSSLANG_ENABLE_BINARIES)
|
||||||
if(CROSSLANG_ENABLE_SHARED)
|
if(CROSSLANG_ENABLE_STATIC)
|
||||||
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)
|
|
||||||
|
|
||||||
add_executable(crossc src/crosslangcompiler.cpp)
|
add_executable(crossc src/crosslangcompiler.cpp)
|
||||||
add_executable(crossvm src/crosslangvm.cpp)
|
add_executable(crossvm src/crosslangvm.cpp)
|
||||||
|
|
Loading…
Reference in New Issue