@@ -14,7 +14,39 @@ find_package(utf8cpp REQUIRED)
1414
1515add_library (scratchcpp SHARED)
1616add_subdirectory (src)
17- include_directories (src)
17+ include_directories (src) # TODO: Remove this line
18+ include_directories (include )
19+
20+ target_sources (scratchcpp
21+ PUBLIC
22+ include /scratchcpp/global .h
23+ include /scratchcpp/project.h
24+ include /scratchcpp/scratchconfiguration.h
25+ include /scratchcpp/iengine.h
26+ include /scratchcpp/iextension.h
27+ include /scratchcpp/iblocksection.h
28+ include /scratchcpp/asset.h
29+ include /scratchcpp/costume.h
30+ include /scratchcpp/sound.h
31+ include /scratchcpp/value .h
32+ include /scratchcpp/entity.h
33+ include /scratchcpp/variable .h
34+ include /scratchcpp/list.h
35+ include /scratchcpp/inputvalue.h
36+ include /scratchcpp/input .h
37+ include /scratchcpp/field.h
38+ include /scratchcpp/script.h
39+ include /scratchcpp/broadcast.h
40+ include /scratchcpp/compiler.h
41+ include /scratchcpp/virtualmachine.h
42+ include /scratchcpp/blockprototype.h
43+ include /scratchcpp/block.h
44+ include /scratchcpp/istagehandler.h
45+ include /scratchcpp/ispritehandler.h
46+ include /scratchcpp/target .h
47+ include /scratchcpp/stage.h
48+ include /scratchcpp/sprite.h
49+ )
1850
1951add_library (zip SHARED
2052 ${ZIP_SRC} /zip.c
@@ -23,6 +55,8 @@ add_library(zip SHARED
2355)
2456include_directories (thirdparty/zip/src)
2557
58+ include_directories (thirdparty/spimpl)
59+
2660target_link_libraries (scratchcpp PRIVATE nlohmann_json::nlohmann_json)
2761target_link_libraries (scratchcpp PRIVATE utf8cpp)
2862target_link_libraries (scratchcpp PRIVATE zip)
0 commit comments