mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 23:40:27 +00:00
messing with cmake
This commit is contained in:
parent
30f62ca454
commit
1d03316bee
@ -18,7 +18,7 @@
|
|||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 3.9)
|
||||||
project(dst)
|
project(dst)
|
||||||
|
|
||||||
# Set Some Variables
|
# Set Some Variables
|
||||||
@ -94,11 +94,20 @@ ${PARSER_SOURCES}
|
|||||||
|
|
||||||
# Build the executable
|
# Build the executable
|
||||||
add_executable(${TARGET_NAME} ${SOURCES})
|
add_executable(${TARGET_NAME} ${SOURCES})
|
||||||
target_link_libraries(${TARGET_NAME} m)
|
target_link_libraries(${TARGET_NAME} m dl)
|
||||||
|
|
||||||
# Build some modules
|
|
||||||
add_library(testlib MODULE ${TESTLIB_SOURCES})
|
|
||||||
|
|
||||||
# TODO dont do this on windows
|
# TODO dont do this on windows
|
||||||
target_link_libraries(${TARGET_NAME} dl)
|
target_link_libraries(${TARGET_NAME} dl)
|
||||||
|
|
||||||
|
# Build some modules
|
||||||
|
add_library(dstvm MODULE ${CORE_SOURCES} ${ASSEMBLER_SOURCES})
|
||||||
|
target_link_libraries(dstvm m)
|
||||||
|
|
||||||
|
#add_library(dstasm MODULE ${ASSEMBLER_SOURCES})
|
||||||
|
|
||||||
|
#add_library(dstparser MODULE ${PARSER_SOURCES})
|
||||||
|
#target_link_libraries(dstparser m)
|
||||||
|
|
||||||
|
#add_library(dstcompiler MODULE ${COMPILER_SOURCES})
|
||||||
|
#target_link_libraries(dstvm m)
|
||||||
|
|
||||||
|
#add_library(testlib MODULE ${TESTLIB_SOURCES})
|
||||||
|
Loading…
Reference in New Issue
Block a user