Add OBoy C++ class
This commit is contained in:
parent
761fc4aa90
commit
95a1f784fc
|
@ -10,7 +10,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||
|
||||
find_package(Qt5 COMPONENTS Core Quick REQUIRED)
|
||||
|
||||
add_executable(${PROJECT_NAME} "main.cpp" "qml.qrc")
|
||||
add_executable(${PROJECT_NAME} "main.cpp" "oboy.cpp" "qml.qrc")
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick)
|
||||
|
||||
|
@ -19,6 +19,3 @@ set(OCAML_ROOT "/usr/lib/ocaml")
|
|||
target_include_directories(${PROJECT_NAME} PRIVATE ${OCAML_ROOT})
|
||||
target_link_directories(${PROJECT_NAME} PRIVATE ${OCAML_ROOT} ${CMAKE_SOURCE_DIR}/../../_build)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE oboycore m dl asmrun)
|
||||
|
||||
#target_link_options(${PROJECT_NAME} PRIVATE -L${CMAKE_SOURCE_DIR}/../../_build -loboy)
|
||||
#target_link_options(${PROJECT_NAME} PRIVATE -L${OCAML_ROOT} -lm -ldl -lasmrun)
|
||||
|
|
6
src/qt/oboy.cpp
Normal file
6
src/qt/oboy.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include "oboy.h"
|
||||
|
||||
OBoy::OBoy(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
}
|
14
src/qt/oboy.h
Normal file
14
src/qt/oboy.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class OBoy : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit OBoy(QObject *parent = nullptr);
|
||||
|
||||
/* signals: */
|
||||
|
||||
/* public slots: */
|
||||
};
|
Loading…
Reference in a new issue