fixes for the pro build
@@ -613,13 +613,7 @@ set(TIC80LIB_SRC
${TIC80LIB_DIR}/net.c
)
-set(TIC80_OUTPUTS tic80)
-
-if(BUILD_PRO)
- list(APPEND TIC80_OUTPUTS tic80pro)
-endif()
-
-foreach(TIC80_OUTPUT ${TIC80_OUTPUTS})
+set(TIC80_OUTPUT tic80)
add_library(${TIC80_OUTPUT}lib STATIC ${TIC80LIB_SRC} ${DEMO_CARTS_OUT})
@@ -633,10 +627,8 @@ foreach(TIC80_OUTPUT ${TIC80_OUTPUTS})
target_link_libraries(${TIC80_OUTPUT}lib tic80core zlib libcurl)
-endforeach()
-
if(BUILD_PRO)
- target_compile_definitions(tic80prolib PRIVATE TIC80_PRO)
+ target_compile_definitions(tic80lib PRIVATE TIC80_PRO)
endif()
################################
@@ -644,7 +636,6 @@ endif()
################################
if(BUILD_SDL)
-foreach(TIC80_OUTPUT ${TIC80_OUTPUTS})
set(TIC80_SRC ${CMAKE_SOURCE_DIR}/src/ext/file_dialog.c)
@@ -716,7 +707,6 @@ foreach(TIC80_OUTPUT ${TIC80_OUTPUTS})
target_link_libraries(${TIC80_OUTPUT} ${GTK_LIBRARIES})
endif()
-endforeach()
endif()
################################
@@ -724,7 +714,6 @@ endif()
################################
if(BUILD_SOKOL)
-foreach(TIC80_OUTPUT ${TIC80_OUTPUTS})
set(TIC80_SRC ${CMAKE_SOURCE_DIR}/src/ext/file_dialog.c)
@@ -775,5 +764,4 @@ foreach(TIC80_OUTPUT ${TIC80_OUTPUTS})
target_link_libraries(${TIC80_OUTPUT}-sokol ${GTK_LIBRARIES})
endif()
-endforeach()
endif()
